package com.baizhi.app;

import com.baizhi.dao.BannerDAO;
import com.baizhi.entity.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/banner")
public class AppBannerController {

    @Autowired
    private BannerDAO bannerDAO;
    @GetMapping("selectAll")
    public List<Banner> selectAll(){
        List<Banner> list = bannerDAO.selectAll();
        return list;
    }
}
